package com.lhc.nacosprovider.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName ProviderController
 * @Description:
 * @Author: asus
 * @CreateDate: 2020-11-24 11:10
 * @UpdateUser: asus
 * @UpdateDate: 2020-11-24 11:10
 * @UpdateRemark:
 * @Version: 1.0
 */
@RestController
public class ProviderController {
    @Value("${myName}")
    private String name;

    @RequestMapping("hello")
    public String hello(){
        return "hellos " + name;
    }
}